Wrong prefix is set in staged pkg-config files when alternate --prefix is configured
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
The prefix variable of the pkg-config file is currently changed to `$SNAPCRAFT_STAGE$originally_configured_prefix_dir` by snapcraft when staging, and the value is not valid.
```
$ cat stage/lib/pkgconfig/hunspell.pc
prefix=/home/ubuntu/poedit/stage/snap/poedit/current
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: hunspell
Description: Hunspell spellchecking library
Version: 1.3.4
Libs: -L${libdir} -lhunspell-1.3
Cflags: -I${includedir}/hunspell
```
Evaluation history
No evaluation history available.